package com.zis.wechat.controller;

import com.zis.core.SearchParams;
import com.zis.wechat.model.Account;
import com.zis.wechat.model.TUser;
import com.zis.wechat.service.ITUserInter;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Create by wangshen 2018/1/2
 */
@RestController
@RequestMapping("/api/wechat/user")
public class TUserController {

    @Autowired
    private ITUserInter itUserInter;

    @RequestMapping(value = "/list", method = RequestMethod.POST)
    @ResponseBody
    public PageQuery<TUser> findByPage(@RequestBody SearchParams params) throws Exception {
        return itUserInter.findByPage(params);
    }
}
